﻿using System;
using System.ComponentModel.DataAnnotations;

namespace KM.ENT
{

    public class entSanPham
    {
        /// <summary>
        /// Initializes a new instance of the entSanPham class
        /// </summary>
        public entSanPham()
        {
            MoTa = "";
        }

        /// <summary>
        /// Gets or sets Id field
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// Gets or sets TenSanPham field
        /// </summary>
        [Required(ErrorMessage="Tên sản phẩm không được để trống")]
        public string TenSanPham { get; set; }

        /// <summary>
        /// Gets or sets MoTa field
        /// </summary>
        public string MoTa { get; set; }

        /// <summary>
        /// Gets or sets NoiDung field
        /// </summary>
        public string NoiDung { get; set; }

        /// <summary>
        /// Gets or sets GiaBan field
        /// </summary>
        public int GiaBan { get; set; }

        /// <summary>
        /// Gets or sets GiaKM field
        /// </summary>
        public int GiaKM { get; set; }

        /// <summary>
        /// Gets or sets ThuTu field
        /// </summary>
        public int ThuTu { get; set; }

        /// <summary>
        /// Gets or sets Image field
        /// </summary>
        public string Image { get; set; }

        /// <summary>
        /// Gets or sets Image1 field
        /// </summary>
        public string Image1 { get; set; }

        /// <summary>
        /// Gets or sets Image2 field
        /// </summary>
        public string Image2 { get; set; }

        /// <summary>
        /// Gets or sets Image3 field
        /// </summary>
        public string Image3 { get; set; }

        /// <summary>
        /// Gets or sets Image4 field
        /// </summary>
        public string Image4 { get; set; }

        /// <summary>
        /// Gets or sets Keywords field
        /// </summary>
        public string Keywords { get; set; }

        /// <summary>
        /// Gets or sets Description field
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// Gets or sets Title field
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// Gets or sets NguoiTao field
        /// </summary>
        public int NguoiTao { get; set; }

        /// <summary>
        /// Gets or sets NgayTao field
        /// </summary>
        public string NgayTao { get; set; }

        /// <summary>
        /// Gets or sets NguoiSua field
        /// </summary>
        public int NguoiSua { get; set; }

        /// <summary>
        /// Gets or sets NgaySua field
        /// </summary>
        public string NgaySua { get; set; }

        /// <summary>
        /// Gets or sets TrangThai field
        /// </summary>
        public Byte TrangThai { get; set; }

        /// <summary>
        /// Gets or sets TrangThai field
        /// </summary>
       
        /// <summary>
        /// Gets or sets LoaiSanPhamId field
        /// </summary>
        public int LoaiSanPhamId { get; set; }
        /// <summary>
        /// Gets or sets SanPham1 field
        /// </summary>
        public Byte SanPham1 { get; set; }

        /// <summary>
        /// Gets or sets SanPham2 field
        /// </summary>
        public Byte SanPham2 { get; set; }

        /// <summary>
        /// Gets or sets SanPham3 field
        /// </summary>
        public Byte SanPham3 { get; set; }


    }

}